package generator.domain;

import java.io.Serializable;
import java.math.BigDecimal;
import lombok.Data;

/**
 * 
 * @TableName BD_ProOnceGasDetail
 */
@Data
public class BdProoncegasdetail implements Serializable {
    /**
     * 
     */
    private Integer id;

    /**
     * 
     */
    private Integer mainid;

    /**
     * 
     */
    private Integer gasid;

    /**
     * 
     */
    private String gasname;

    /**
     * 
     */
    private String gasengname;

    /**
     * 
     */
    private BigDecimal concen;

    /**
     * 
     */
    private String unit;

    /**
     * 
     */
    private BigDecimal cusconcern;

    /**
     * 
     */
    private String cusunit;

    /**
     * 
     */
    private String analysemethodid;

    /**
     * 
     */
    private String analysemethodname;

    /**
     * 
     */
    private String isbottomgas;

    /**
     * 
     */
    private String note;

    /**
     * 
     */
    private Double gasweight;

    /**
     * 
     */
    private BigDecimal quality;

    /**
     * 
     */
    private BigDecimal oneconcentration;

    /**
     * 
     */
    private String onebottlecode;

    /**
     * 
     */
    private Integer uuid;

    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        BdProoncegasdetail other = (BdProoncegasdetail) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getMainid() == null ? other.getMainid() == null : this.getMainid().equals(other.getMainid()))
            && (this.getGasid() == null ? other.getGasid() == null : this.getGasid().equals(other.getGasid()))
            && (this.getGasname() == null ? other.getGasname() == null : this.getGasname().equals(other.getGasname()))
            && (this.getGasengname() == null ? other.getGasengname() == null : this.getGasengname().equals(other.getGasengname()))
            && (this.getConcen() == null ? other.getConcen() == null : this.getConcen().equals(other.getConcen()))
            && (this.getUnit() == null ? other.getUnit() == null : this.getUnit().equals(other.getUnit()))
            && (this.getCusconcern() == null ? other.getCusconcern() == null : this.getCusconcern().equals(other.getCusconcern()))
            && (this.getCusunit() == null ? other.getCusunit() == null : this.getCusunit().equals(other.getCusunit()))
            && (this.getAnalysemethodid() == null ? other.getAnalysemethodid() == null : this.getAnalysemethodid().equals(other.getAnalysemethodid()))
            && (this.getAnalysemethodname() == null ? other.getAnalysemethodname() == null : this.getAnalysemethodname().equals(other.getAnalysemethodname()))
            && (this.getIsbottomgas() == null ? other.getIsbottomgas() == null : this.getIsbottomgas().equals(other.getIsbottomgas()))
            && (this.getNote() == null ? other.getNote() == null : this.getNote().equals(other.getNote()))
            && (this.getGasweight() == null ? other.getGasweight() == null : this.getGasweight().equals(other.getGasweight()))
            && (this.getQuality() == null ? other.getQuality() == null : this.getQuality().equals(other.getQuality()))
            && (this.getOneconcentration() == null ? other.getOneconcentration() == null : this.getOneconcentration().equals(other.getOneconcentration()))
            && (this.getOnebottlecode() == null ? other.getOnebottlecode() == null : this.getOnebottlecode().equals(other.getOnebottlecode()))
            && (this.getUuid() == null ? other.getUuid() == null : this.getUuid().equals(other.getUuid()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getMainid() == null) ? 0 : getMainid().hashCode());
        result = prime * result + ((getGasid() == null) ? 0 : getGasid().hashCode());
        result = prime * result + ((getGasname() == null) ? 0 : getGasname().hashCode());
        result = prime * result + ((getGasengname() == null) ? 0 : getGasengname().hashCode());
        result = prime * result + ((getConcen() == null) ? 0 : getConcen().hashCode());
        result = prime * result + ((getUnit() == null) ? 0 : getUnit().hashCode());
        result = prime * result + ((getCusconcern() == null) ? 0 : getCusconcern().hashCode());
        result = prime * result + ((getCusunit() == null) ? 0 : getCusunit().hashCode());
        result = prime * result + ((getAnalysemethodid() == null) ? 0 : getAnalysemethodid().hashCode());
        result = prime * result + ((getAnalysemethodname() == null) ? 0 : getAnalysemethodname().hashCode());
        result = prime * result + ((getIsbottomgas() == null) ? 0 : getIsbottomgas().hashCode());
        result = prime * result + ((getNote() == null) ? 0 : getNote().hashCode());
        result = prime * result + ((getGasweight() == null) ? 0 : getGasweight().hashCode());
        result = prime * result + ((getQuality() == null) ? 0 : getQuality().hashCode());
        result = prime * result + ((getOneconcentration() == null) ? 0 : getOneconcentration().hashCode());
        result = prime * result + ((getOnebottlecode() == null) ? 0 : getOnebottlecode().hashCode());
        result = prime * result + ((getUuid() == null) ? 0 : getUuid().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", mainid=").append(mainid);
        sb.append(", gasid=").append(gasid);
        sb.append(", gasname=").append(gasname);
        sb.append(", gasengname=").append(gasengname);
        sb.append(", concen=").append(concen);
        sb.append(", unit=").append(unit);
        sb.append(", cusconcern=").append(cusconcern);
        sb.append(", cusunit=").append(cusunit);
        sb.append(", analysemethodid=").append(analysemethodid);
        sb.append(", analysemethodname=").append(analysemethodname);
        sb.append(", isbottomgas=").append(isbottomgas);
        sb.append(", note=").append(note);
        sb.append(", gasweight=").append(gasweight);
        sb.append(", quality=").append(quality);
        sb.append(", oneconcentration=").append(oneconcentration);
        sb.append(", onebottlecode=").append(onebottlecode);
        sb.append(", uuid=").append(uuid);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}